package com.mail.server.service;

import com.mail.dubbo.api.OmsCompanyAddressApi;
import com.mail.model.db.OmsCompanyAddress;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OmsCompanyAddressService {

    @DubboReference
    private OmsCompanyAddressApi companyAddressApi;

    //获取所有收货地址
    public List<OmsCompanyAddress> list() {
        return companyAddressApi.selectAll();
    }
}
